mem_event: Add support for MEM_EVENT_REASON_MSR
authorRazvan Cojocaru <rzvncj@gmail.com>
Thu, 17 Jan 2013 12:27:00 +0000 (12:27 +0000)
committerRazvan Cojocaru <rzvncj@gmail.com>
Thu, 17 Jan 2013 12:27:00 +0000 (12:27 +0000)
commit41333c800cf5fd34229f06b338ef3ff9a2fd3bde
tree85a7dbbfa2a6aae8ff0aaed3bdded750d4c06234
parentd564b6fe9de6c19158d64d714d3bef9261f5b2e1
mem_event: Add support for MEM_EVENT_REASON_MSR

Add the new MEM_EVENT_REASON_MSR event type. Works similarly
to the other register events, except event.gla always contains
the MSR address (in addition to event.gfn, which holds the value).
MEM_EVENT_REASON_MSR does not honour the HVMPME_onchangeonly bit,
as doing so would complicate the hvm_msr_write_intercept()
switch-based handling of writes for different MSR addresses,
with little added benefit.

Signed-off-by: Razvan Cojocaru <rzvncj@gmail.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h
xen/include/public/hvm/params.h
xen/include/public/mem_event.h